package com.cupdata.zicon.ch1_10;

public class Run {
	public static void main(String[] args) {
//		System.out.println("mian thread begin priority="
//				+ Thread.currentThread().getPriority());
//		
////		Thread.currentThread().setPriority(6);
//		System.out.println("main thread end priority="
//				+ Thread.currentThread().getPriority());
//		
//		MyThread1 thread1 = new MyThread1();
//		thread1.start();
		
		for (int i = 0;i<5;i++) {
			MyThread1 thread1 = new MyThread1();
			thread1.setPriority(5);
			thread1.start();
			MyThread2 thread2 = new MyThread2();
			thread2.setPriority(6);
			thread2.start();
		}
		
	}
}
